﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BusinessEntity;
using BusinessService;

namespace BusinessLogic
{
   public class RepairManager
    {
       RepairsService rs = new RepairsService();

       public int AddOne(Repairs model)
       {
           return rs.AddNew(model);
       }

       public int GetIdByWorkId(string workid)
       {
           return rs.GetIdByWorkId(workid);
       }

       public Repairs GetByOrder(string order)
       {
           return rs.GetByOrder(order);
       }

       public int AsignOrder(string workorder, int userid)
       {
           return rs.AsignOrder(workorder, userid);
       }

       public int UpdateRepByWorkId(string workid, int repid)
       {
           return rs.UpdateRepByWorkId(workid, repid);
       }

       public int UpdateRepairStatus(string workid, int statusid)
       {
           return rs.UpdateRepairStatus(workid, statusid);
       }

       public object ExecuteSql(string sql)
       {
           return rs.ExecuteSql(sql);
       }
    }
}
